﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DTcms.Common;

namespace DTcms.Web.UI
{
    public partial class BasePage : System.Web.UI.Page
    {


        #region 内容标签======================================
        /// <summary>
        /// 根据分类id获取广告列表
        /// </summary>
        /// <param name="siteid">站点id</param>
        /// <param name="classid">分类id</param>
        /// <returns></returns>
        protected DataTable get_adlist_byclassid(int siteid, int classid)
        {
            DataTable dt = null;

            dt = new BLL.ad().GetList(50, " site_id=" + siteid + " and parent_id=" + classid, "sort_id asc,id desc").Tables[0];

            return dt;
        }

        #endregion

    }
}
